import { createApp } from 'vue'
import App from './App.vue'
import '../src/assets/style.css'
import router from './router'

// 引入小菠萝
import { createPinia } from 'pinia'
import 'element-plus/dist/index.css'
// 引入全局样式
import './assets/reset.css'
const pinia = createPinia()
import './api/axios.js'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

// css
import './assets/css/reset.css'  // 基础样式

app.use(router).use(pinia).mount('#app')

